package com.gift.recommendation.modules.login.service;

import com.gift.recommendation.modules.admin.dto.GuessLikeReq;
import com.gift.recommendation.modules.login.dao.entity.UserEntity;
import com.gift.recommendation.modules.login.dao.mapper.UserMapper;
import com.gift.recommendation.modules.login.dto.UserEntityExt;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * @author zzh <2658137258@qq.com>
 * @date 2022/11/4
 */
@Repository
public class LoginService {
    @Autowired
    private UserMapper userMapper;

    public List<UserEntity> selectByExample(Example example){
        return userMapper.selectByExample(example);
    }

    public void insertSelective(UserEntity userEntity){
        userMapper.insertSelective(userEntity);
    }

    public List<UserEntityExt> selectUserByGoods(GuessLikeReq req) {
        return userMapper.selectUserByGoods(req);
    }
}
